<div class="wrap">

{if $smarty.cookies.message != NULL}
	<div id="ajaxResponse1" class="ajaxResponse" style="display:block">{$smarty.cookies.message}</div>
{/if}
<h2>
	{if isset($smarty.get.subcat)}
 		Neues Untermen&uuml; f&uuml;r: {$PARENT_NAME}	
 	{else}
		Neues Obermen&uuml;	
	{/if}
</h2>	
<form enctype="multipart/form-data" name="addcat" id="addcat" method="post" >
	<input type="hidden" name="act" value="addnewcat" />
    <input type="hidden" name="cat_parent" value="{$smarty.get.catid}" />
	<table class="editform" width="100%" cellspacing="2" cellpadding="5">
		<tr>
			<th width="33%" scope="row" valign="middle">
			<label for="cat_name">{TranslateTag}B_LABEL_NAME{/TranslateTag}:</label></th>
			<td width="67%">
			<input name="cat_name" id="cat_name" type="text" value="" size="40" /></td>
		</tr>
{if $SETLEFTMENU != "0"}        
        {if !isset($smarty.get.catid)}
        <tr>
			<th width="33%" scope="row" valign="middle">
			<label for="cat_name">Choose Widget:</label></th>
			<td width="67%">
				<select name="widget_id">
                	<option value="0">None</option>
                	{foreach name=widget from=$WIDGET item=item}
                    	<option value="{$item->widget_id}">{$item->widget_name}</option>
                    {/foreach}
                </select>
            </td>
		</tr>
        {/if}
{/if}        
        <tr>
			<th width="33%" scope="row" valign="middle">
			<label for="language_name">Choose Language:</label></th>
			<td width="67%">
				<select name="language_id">
                	<option value="0">None</option>
                	{foreach name=language from=$LANGUAGE item=item}
                    	<option value="{$item->key_lang}">{$item->name_lang}</option>
                    {/foreach}
                </select>
            </td>
		</tr>
        {if $SETBANNER != "0"}
        <tr>
			<th width="33%" scope="row" valign="middle">
			<label for="cat_name">Set Banner :</label></th>
			<td width="67%">
				<input type="file" name="banner" style="width:99%;"/> (Size : 880 x 160 px)
            </td>
		</tr>
         {/if}
		<tr>
			<th scope="row" valign="top">
			<label for="cat_description">Beschreibung:</label></th>
			<td><textarea name="cat_description" id="cat_description" rows="5" cols="50" style="width: 97%;"></textarea></td>
		</tr>
		<tr>
			<th width="33%" scope="row" valign="middle">
			<label for="status">Aktiv</label></th>
			<td width="67%">
				<input name="status" id="status" type="checkbox" value="1"/>
			</td>
		</tr>
	</table>
	<p class="submit" align = "right">
		<input type="image" name="submit" src="../view/admin/images/object_save.png" value="" />
	</p>
</form>
</div>